<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <!-- 2.准备容器 -->
  <div id="app">
    Vue的模板
    <h1>{{msg}}</h1>
    <h2>结果是：{{price}}</h2>
  </div>

  <!-- 1。导入vue.js -->
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

  <script>
    <!-- 3. 创建Vue实例对象 -->
    const app = new Vue({
      // < !--容器 -->
      el: "#app",
      data: {
        msg: "hello vue",
        price: 1099,
      },
    });
    //查看vue实例对象
    console.log(app);
  </script>
</body>

</html>